class User:
#__私有属性
   #__count=0
    count=0
   #def __init__(self):
   #    pass
   #python方法没有重载 后面方法覆盖前面方法
    #设置默认函数值来实现类似方法重载的效果
    def __init__(self,name,age,sex,email):
    #成员变量
       #self.name=name
       #self.age=age
       #self.sex=sex
       #self.email=email
     def getName(self):
        return self.name
    def show(self):
        print("show--------------")

    @classmethod
    def show1(cls):
     print("show1----------------")
    @staticmethod
    def show2():
        print("show2----------------")

class Parent:
    name="parent"
    __sex="male"
    age=18
    def show(self):
        print("show-------(self.name)-------")
class Child(Parent):
    age=20
    def study(self):
        print("show-------(self.age)-------")

        class Dog:
            def show(self):
                print("汪汪汪")

        class Cat:
            def show(self):
                print("喵喵喵")

        dog = Dog()
        dog.show()
        cat = Cat()
        cat.show()